package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CategoryByProvinceMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CategoryByProvince;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CategoryByProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryByProvinceServiceImpl implements CategoryByProvinceService {
    @Autowired
    private CategoryByProvinceMapper categoryByProvinceMapper;

    @Override
    public List<CategoryByProvince> selectAll() {
        return categoryByProvinceMapper.selectAll();
    }

    @Override
    public int insert(CategoryByProvince categoryByProvince) {
        return categoryByProvinceMapper.insert(categoryByProvince);
    }
}
